package pzl.com.threadrelated.tasks;

import android.os.Looper;
import android.os.Message;
import android.util.Log;

import pzl.com.threadrelated.NotifyMainThreadActivity;

/**
 * @author zl.peng
 * @version [1.0, 2016-11-14]
 */
public class SubThread2 extends Thread {

    @Override
    public void run() {
        Log.e("pzl", "子线程：" + Thread.currentThread().getName() + " run() start");
        Looper looper = Looper.getMainLooper();
        NotifyMainThreadActivity.MyHandler2 handler = new NotifyMainThreadActivity.MyHandler2(looper);
        Message message = handler.obtainMessage();
        message.obj = "sa bi ya 2";
        handler.sendMessage(message);
        Log.e("pzl", "子线程：" + Thread.currentThread().getName() + " run() end");
    }


}
